//
//  UIViewController+AddTableViewHeaderFooter.h
//  即时通讯
//
//  Created by huangtao on 16/7/9.
//  Copyright © 2016年 fish. All rights reserved.
//

#import <UIKit/UIKit.h>

static CGFloat kEntryVCHorizontalSpacing = 30;
static CGFloat kEntryVCVerticalSpacing = 15;
static CGFloat kEntryVCTextFieldPadding = 10;
static CGFloat kEntryVCTextFieldHeight = 45;

@interface UIViewController (AddTableViewHeaderFooter)

#pragma mark- MJRefresh
//添加下拉刷新
- (void)addRefreshHeader:(UITableView *)tableView;
//添加上拉刷新
- (void)addRefreshFooter:(UITableView *)tableView;

//下拉刷新
- (void)pullRefreshing;
//上拉刷新
- (void)pushRefreshing;

#pragma mark- NSNotification
//移除通知
- (void)removeAllObservers;

- (void)addCancelBarButtonItem:(BOOL)force;

@end
